
<?php 
$data=$this->listQuestion;
$tag= new Zendvn_Filter_Tag();
echo "<pre>";
//print_r($data);
echo "</pre>";
foreach($data as $key => $value){
	$tagId= $tag->getTagId($value['tag']);
	echo "<div class='question-summary narrow' id='question-summary-'".$value['id']."'>";
	echo "<div class='cp'>";
	echo "<div class='votes'>";
	echo "<div class=\"mini-counts\">".$value['count_vote']."</div>";
	echo "<div>votes</div>";
	echo "</div>";
	echo "<div class=\"status unanswered\">";
	echo "<div class=\"mini-counts\">".$value['count_answer']."</div>";
	echo "<div>answer</div>";
	echo "</div>";
	echo "<div class=\"views\">";
	echo "<div class=\"mini-counts\">".$value['count_view']."</div>";
	echo "<div>views</div>";
	echo "</div>";
	echo "</div>";
	echo "<div class=\"summary\">
	<h3>
	<a href=\"";
	echo $this->url(array('controller'=>'question','action'=>'index','id'=>$value['id']));
	echo "\" class=\"question-hyperlink\">".$value['title']." </a></h3>";
	foreach($tagId as  $k => $v){
		echo	"<div class=\"tags t-javascript t-flash t-samsung-smart-tv\" id='tag-".$v['id']."' >";
		echo 	"<a href='".$this->url(array('controller'=>'tag','action'=>'index','id'=>$v['id']))."' class=\"post-tag\" rel=\"tag\">".$v['name']."</a></div>";
	}
		
	echo "<div class=\"started\">
	<a  href=\"#\" class=\"started-link\">
	<span class=\"relativetime\">14s ago</span>
	</a>
	<a href='".$this->url(array('controller'=>'user','action'=>'index','id'=>$value['id_user']))."'>".$value['name']."</a>
	</div>
	</div>
	</div>
	";
	
}
?>

		